<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link href="images/skin.css" rel="stylesheet" type="text/css" />
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<base href="<%=basePath%>">
		<style type="text/css">
		<!--
		body {
			margin-left: 0px;
			margin-top: 0px;
			margin-right: 0px;
			margin-bottom: 0px;
			background-color: #EEF2FB;
		}
		 
		.contentTable,.contentTable td,.contentTable th,  {   
		    border:1px solid #cccccc;   
		    border-collapse:collapse;  
		}   
		
		-->
		</style>
		<SCRIPT LANGUAGE="JavaScript">
			function ExportExcel(theform)
			{
			    alert("如果数据量较大，导出可能需要较长时间，请稍候！:)");
			    theform.submit();
				
			}
			</SCRIPT>
	</head>
	<body>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" style="">
			<tr>
			    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
			    <td valign="top" background="images/content-bg.gif">
			    	<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
				      <tr>
				        <td height="31"><div class="titlebt">查询结果列表</div></td>
				      </tr>
			    	</table>
			    </td>
			    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
		  </tr>
		  
		  <tr >
			<td valign="middle" background="images/mail_leftbg.gif">
				&nbsp;
			</td>
			<td valign="top" bgcolor="#F7F8F9" >			
				
				<table width="100%" border="0" frame="box" cellspacing="0" style="margin-top:10px;" class="contentTable" id="data">
						  
						  <tr>
						    <th width="6%" height="25px" class="table_content" align="center">编号</th>
						    <th width="5%" height="25px" class="table_content" align="center">地区</th>
						    <th width="10%" height="25px" class="table_content" align="center">业务号码</th>
						    <th width="10%" height="25px" class="table_content" align="center">师傅号码</th>
						    <th width="8%" height="25px" class="table_content" align="center">支撑类别</th>
						    <th width="25%" height="25px" class="table_content" align="center">故障现象</th>
						    <th width="7%" height="25px" class="table_content" align="center">状态</th>
						    <th width="6%" height="25px" class="table_content" align="center">受理人</th>
						    <th width="17%" height="25px" class="table_content" align="center">受理时间</th>
						    <th width="6%" height="25px" class="table_content" align="center">选项</th>
						  </tr>
						  <s:iterator value="allRequests" var="request">
						  <tr>
						    <td class="table_content" align="center"><s:property value="#request.id"/>&nbsp;</td>
						    <td class="table_content" align="center"><s:property value="#request.area"/>&nbsp;</td>
						    <td class="table_content" align="center"><s:property value="#request.serviceNum"/>&nbsp;</td>
						    <td class="table_content" align="center"><s:property value="#request.masterNum"/>&nbsp;</td>
						    <td class="table_content" align="center"><s:property value="#request.supportType"/>&nbsp;</td>
						    <td class="table_content" align="center">【<s:property value="#request.productType"/>】<s:property value="#request.symptom"/>&nbsp;</td>
						    <td class="table_content" align="center"><s:property escape="false" value="#request.status"/>&nbsp;</td>
						    <td class="table_content" align="center"><s:property value="#request.operator"/>&nbsp;</td>
						    <td class="table_content" align="center"><s:property value="#request.time"/>&nbsp;</td>
						    <td class="table_content" align="center">
						    	<a href="<s:url action="Request!view"><s:param name="id" value="%{#request.id}"></s:param></s:url>">查看</a>					    	
						    </td>
						  </s:iterator>
						 </table>
			</td>
			<td background="images/mail_rightbg.gif">
				&nbsp;
			</td>
			</tr>
			<tr>
			    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
			    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
			    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
		  	</tr>
		</table>
	</body>

</html>
